package com.ian.homework;

/**
 * 手机卡类
 */
public class PhoneCard {
    private String strCardStyle;
    private String strCardNO;
    private String strUserName;
    private String strPassword;
    private float fAccount;
    private int iTime;
    private float fPhoneData;

    public PhoneCard(String strCardStyle, String strCardNO, String strUserName, String strPassword, float fAccount, int iTime, float fPhoneData) {
        this.setStrCardStyle(strCardStyle);
        this.setStrCardNO(strCardNO);
        this.setStrUserName(strUserName);
        this.setStrPassword(strPassword);
        this.setfAccount(fAccount);
        this.setiTime(iTime);
        this.setfPhoneData(fPhoneData);
    }

    public PhoneCard() {
    }

    public String getStrCardStyle() {
        return strCardStyle;
    }

    public void setStrCardStyle(String strCardStyle) {
        this.strCardStyle = strCardStyle;
    }

    public String getStrCardNO() {
        return strCardNO;
    }

    public void setStrCardNO(String strCardNO) {
        this.strCardNO = strCardNO;
    }

    public String getStrUserName() {
        return strUserName;
    }

    public void setStrUserName(String strUserName) {
        this.strUserName = strUserName;
    }

    public String getStrPassword() {
        return strPassword;
    }

    public void setStrPassword(String strPassword) {
        this.strPassword = strPassword;
    }

    public float getfAccount() {
        return fAccount;
    }

    public void setfAccount(float fAccount) {
        this.fAccount = fAccount;
    }

    public int getiTime() {
        return iTime;
    }

    public void setiTime(int iTime) {
        this.iTime = iTime;
    }

    public float getfPhoneData() {
        return fPhoneData;
    }

    public void setfPhoneData(float fPhoneData) {
        this.fPhoneData = fPhoneData;
    }

    public void show() {
        System.out.println("用户名：" + this.strUserName);
        System.out.println("卡  号：" + this.strCardNO);
        System.out.println("余  额：" + this.fAccount);
    }
}
